package com.yanglei.service;

import com.yanglei.dao.PayMentDao;
import com.yanglei.entities.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class paymentServiceImpl implements paymentService {
    @Autowired
    private PayMentDao payMentDao;

    @Override
    public int create(Payment payment) {
        return payMentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return payMentDao.getPaymentById(id);
    }
}
